# -*- coding: utf-8 -*-
"""
__author__ = 'bingo'
__date__ = '2019/3/11'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃      ☃      ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""
from django.db import models


class ModelBaseField(models.Model):
    """
    模型model公用的字段
    """
    create_time = models.DateTimeField(verbose_name="创建时间", auto_now_add=True, help_text="创建时间")
    update_time = models.DateTimeField(verbose_name="修改时间", auto_now=True, help_text="修改时间")
    is_delete = models.BooleanField(verbose_name="逻辑删除", default=False, help_text="逻辑删除")

    class Meta:
        """
        声明为抽象模型类，用于其他模型继承，migration时候不会生成数据表
        """
        abstract = True

